package com.example.demo.service;

import com.example.demo.mapper.BorrowingMapper;
import com.example.demo.model.Borrowing;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class BorrowingService {

    @Autowired
    private BorrowingMapper borrowingMapper;



    public void returnBook(Integer borrowingId) {
        borrowingMapper.updateReturnDate(borrowingId, LocalDateTime.now());
    }




}